package com.woniu.controller;

import com.woniu.dto.DrugDistributionDto;
import com.woniu.entity.DrugDistribution;
import com.woniu.service.DrugDistributeService;
import com.woniu.utils.ResponseUtil;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.text.ParseException;

/**
 * @Author: zcy
 * @Create: 2025/11/3 14:36
 */
@RestController
@RequestMapping("/drugDistribute")
public class DrugDistributeController {
    @Resource
    private DrugDistributeService drugDistributeService;
    @PostMapping("/add")
    public ResponseUtil add(@RequestBody DrugDistributionDto drugDistributiondto) throws InterruptedException {
        return drugDistributeService.add(drugDistributiondto);
    }
}
